#include <iostream>
#include <memory>
#include "tcp_client.hpp"

void usage(const std::string &cmd)
{
    std::cerr << "Usager: " << cmd << " server_ip server_port\n";
}

int main(int argc, char *argv[])
{
    if (argc != 3)
    {
        usage(argv[0]);
        exit(1);
    }
    std::unique_ptr<tcp_client> ptc(new tcp_client(argv[1], atoi(argv[2])));
    ptc->run();
    return 0;
}